package com.zhaoc.dao;

import com.zhaoc.domain.Courier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * <p>title:com.zhaoc.dao</p>
 * date:2018/8/1 0001
 * time:20:26
 * author:赵成
 * user:13566
 */

public interface CourierRepository extends JpaRepository<Courier,Integer> ,JpaSpecificationExecutor<Courier> {

    @Query(value = "update Courier set deltag='1' where id = ?1")
    @Modifying
    void updateDeltag(Integer id);
}
